//
//  MessageModel.swift
//  koolcar
//
//  Created by kuaimaxiansheng on 2023/9/25.
//

import UIKit
import ObjectMapper

class MessageModel: Mappable {
    var code : String?
    var data : MessageDataModel?
    var msg : String?
    
    required init?(map: Map) {
        
    }
    
    func mapping(map: Map) {
        code <- map["code"]
        data <- map["data"]
        msg <- map["msg"]
    }
}

class MessageDataModel: Mappable {
    var content : [MessageListModel]?
    
    required init?(map: Map) {
        
    }
    
    func mapping(map: Map) {
        content <- map["content"]
    }
}

class MessageListModel: Mappable {
    var id : NSInteger?
    var createdTime : String?
    var modifyTime : String?
    var status : NSInteger?//消息状态 0 未读 1 已读
    var massagesId: NSInteger?
    var memberId: NSInteger?
    var content: String?
    var title: String?
    var imgUrl: String?
    required init?(map: Map) {
        
    }
    
    func mapping(map: Map) {
        id <- map["id"]
        createdTime <- map["createdTime"]
        modifyTime <- map["modifyTime"]
        status <- map["status"]
        massagesId <- map["massagesId"]
        memberId <- map["memberId"]
        content <- map["content"]
        title <- map["title"]
        imgUrl <- map["imgUrl"]
    }
}
